package com.synnex.wms.service;
/**
 * 用户 接口实现类，service
 * */

import com.synnex.wms.mapper.UserMapper;
import com.synnex.wms.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class UserService {

	@Autowired
	private UserMapper UserMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return UserMapper.deleteByPrimaryKey(id);
	}

    public int insert(User record){
    	return UserMapper.insert(record);
    }

    public int insertSelective(User record){
    	return UserMapper.insertSelective(record);
    }

    public User selectByPrimaryKey(Integer id){
    	return UserMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(User record){
    	return UserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(User record){
    	return UserMapper.updateByPrimaryKey(record);
    }
    
    public User selectByNameAndPword(String Username){
    	return UserMapper.selectByNameAndPword(Username);
    }
  
    public List<User> selectBy(){
    	return UserMapper.selectBy();
    }
    
    public List<User> showlist(User User){
    	return UserMapper.showlist(User);
    }
    public int pagecount(User User){
    	return UserMapper.pagecount(User);
    }
    
    
}
